(function() {
  const response = {
    "type": "page",
    "body": [{
      "type": "form",
      "title": "ChatGPT",
      "api": "post:/openai/chatbot",
      "body": [
        {
          "type": "list-select",
          "name": "role",
          "label": "单选",
          "clearable": true,
          "options": [
            {
              "label": "User",
              "value": "user"
            }
          ]
        },
        {
          "name": "content",
          "type": "input-text",
          "label": "Input",
          "addOn": {
            "type": "button",
            // "icon": "https://suda.cdn.bcebos.com/images%2F2021-01%2Fsearch.svg",
            "icon": "fa fa-comment",
            "label": "发送"
          }
        }
      ]
    },
      {
        "label": "Python get",
        "type": "button",
        "actionType": "ajax",
        "api": "get:/pyapi/v1/test/hello",
        "feedback": {
          "title": "操作成功",
          "body": "get 已操作成功"
        }
      }
    ]
  }

window.jsonpCallback && window.jsonpCallback(response);
})();

